package junior.db.dao.query;

import junior.db.dao.base.FilterSqlHelper;

import java.util.function.Consumer;

/**
 * @author wubo
 * @date 2024/9/3 15:09
 */
class QuerySqlHelper extends FilterSqlHelper {
    
    static String doQuery(AbstractQuery query, Consumer<Object> valueConsumer) {
        query.beforeExecuteNode();
        return FilterSqlHelper.doQuery(query, "", (path, value) -> {
            valueConsumer.accept(value);
            return "?";
        });
    }
}
